﻿using AbpVnext_Module.Dto;
using FluentValidation;
using Volo.Abp.DependencyInjection;

namespace AbpVnext_Module.FluentValidation
{
    ///// <summary>
    ///// 创建自定义 商品验证dto
    ///// </summary>
    //[Dependency(ServiceLifetime.Transient)]
    //public class CustomProductValidator : AbstractValidator<OrderCreateDto>
    //{
    //    public CustomProductValidator()
    //    {
    //        RuleFor(x => x.OrderSn).Length(10);
    //        RuleFor(x => x.TotalDiscount).InclusiveBetween(10,100);
    //    }
    //}
}
